#pragma once

#include <typedef.h>
//
#include <task_run.hpp>
//
#include <udp_recver_client.hpp>

class UdpRecver : public TaskRun
{
public:
	UdpRecver(int port, UdpRecverClient* client);
	virtual ~UdpRecver();
	virtual void Start(void* arg = nullptr);

protected:
	virtual void Run(void* arg);

private:
	int m_Port;
	int m_Socket;
	char* m_Buff;
	UdpRecverClient* m_Client;
	struct sockaddr_in m_ServerAddr;
};